import random

# 友邦报警类型->中石化报警类型

YB2ZSH_MAP = {
    # 一级分神 ->分神预警，打电话，抽烟
    3: random.choice(['0x32', '0x35', '0x33']),
    # 疲劳驾驶预警
    14: "0x31",
    # 摄像遮挡
    11: "0x37",
    # 驾驶超时
    18: "0x18",
    # 碰撞预警
    29: "0x20",
    # 左右车道偏移
    28: random.choice(["0x21", "0x22"]),  # 没办法不知道左右
    # 前车过近
    '200003': "0x23",
    # 路线偏移
    23: '0x17',
    # 驾驶员异常
    32: "0x34",
    # 急减速
    0: random.choice(['0x10', '0x11']),
    # 侧翻预警
    30: "0x13",
    # 超速行驶
    1: '0x12',
    # 重度疲劳
    2: '0x30'
}

# 公司名称
COMPANY_NAME = "中运汉邦"

# http消息头模板
HEADER_TEMP = {
    'Content-Type': 'application/x-www-form-urlencoded',
    'Accept': 'application/json, text/plain, */*',
    'apiName': 'youbanganda',
    'apiToken': 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.e30.jLHatDKHnNd8V1HGxbIEdlBKU9PjN_0ovJfQCvw9Z9A',
}

# ZSH URL
BASE_URL = 'https://219.143.119.224/RD/'
